package com.yanmaohu.yulia.bean;

/**
 * @author Bright Lee
 */
public final class GroupByClause {

    private int beginIndex;
    private int endIndex;
    private SetQuantifier setQuantifier;
    private GroupingElementList groupingElementList;

    public GroupByClause(int beginIndex, SetQuantifier setQuantifier, GroupingElementList groupingElementList) {
        this.beginIndex = beginIndex;
        this.endIndex = groupingElementList.get(groupingElementList.size() - 1).getEndIndex();
        this.setQuantifier = setQuantifier;
        this.groupingElementList = groupingElementList;
    }

    public int getBeginIndex() {
        return beginIndex;
    }

    public int getEndIndex() {
        return endIndex;
    }

    public SetQuantifier getSetQuantifier() {
        return setQuantifier;
    }

    public GroupingElementList getGroupingElementList() {
        return groupingElementList;
    }

}
